<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

  </head>
  
  <body>
   普通上传:<br/>
  <form action="<%=basePath %>/upload/upload" method="post" enctype="multipart/form-data">
  	<input type="file" name="uploadfile"/>
  	<input type="submit" value="提交"/>
  </form>
  
  <br/>
  
  MVC上传:<br/>
  <form action="<%=basePath %>/upload/mvcupload" method="post" enctype="multipart/form-data">
  	<input type="file" name="uploadfile"/>
  	<input type="submit" value="提交"/>
  </form>
  </body>
</html>
